package com.xnyzc.lhy.order.feign.fallback.finance;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.order.entity.bill.OaDBill;
import com.xnyzc.lhy.order.entity.wallet.OaDFreeze;
import com.xnyzc.lhy.order.feign.finance.IOaDFreezeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class OaDFreezeServiceFallback implements IOaDFreezeService {
    @Override
    public Rv saveFreezeBalance(OaDFreeze oaDFreeze) {
        log.info("添加司机冻结金额进入降级服务，访问失败！");
        return Rv.wrap(EErrorCode.addError);
    }

    @Override
    public Rv saveDriverBill(OaDBill oaDBill) {
        log.info("账单进入降级服务，访问失败！");
        return Rv.wrap(EErrorCode.addError);
    }
}
